home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kopete / kopetenotifydataobject.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  1.6 KB  |  59 lines

  1. /*
  2.     kopetenotifydataobject.h - Kopete Custom Notify Data Object
  3.  
  4.     Copyright (c) 2004 by Will Stephenson       <lists@stevello.free-online.co.uk>
  5.  
  6.     Kopete    (c) 2002-2004 by the Kopete developers  <kopete-devel@kde.org>
  7.  
  8.     *************************************************************************
  9.     *                                                                       *
  10.     * This library is free software; you can redistribute it and/or         *
  11.     * modify it under the terms of the GNU Lesser General Public            *
  12.     * License as published by the Free Software Foundation; either          *
  13.     * version 2 of the License, or (at your option) any later version.      *
  14.     *                                                                       *
  15.     *************************************************************************
  16. */
  17. #ifndef KOPETENOTIFYDATAOBJECT_H
  18. #define KOPETENOTIFYDATAOBJECT_H
  19.  
  20. #include <qdict.h>
  21. #include <qstring.h>
  22. #include <qvaluelist.h>
  23.  
  24. #include "kopete_export.h"
  25.  
  26. class QDomElement;
  27.  
  28. namespace Kopete
  29. {
  30.  
  31. class NotifyEvent;
  32.  
  33. /**
  34.  * Contains custom notification control and storage functionality
  35.  */
  36.  
  37. class KOPETE_EXPORT NotifyDataObject
  38. {
  39.     public:
  40.         NotifyDataObject();
  41.         ~NotifyDataObject();
  42.         // Notify events
  43.         NotifyEvent *notifyEvent( const QString &event ) const;
  44.         void setNotifyEvent( const QString &event, 
  45.                 NotifyEvent *notifyEvent );
  46.         bool removeNotifyEvent( const QString &event );
  47.         // Serialization
  48.     protected:
  49.         QDomElement notifyDataToXML();
  50.         bool notifyDataFromXML( const QDomElement& element );
  51.     private:
  52.         class Private;
  53.         NotifyDataObject::Private* d;
  54. };
  55.  
  56. }
  57.  
  58. #endif
  59.